package com.langgan.model_main;


import com.langgan.model_main.mvvm.model.ConstellationBean;
import com.langgan.model_main.mvvm.model.DxModel;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.QueryMap;

/**
 * @brief
 * @author Beichen
 * @date 2021-12-01
 */
public interface ApiService {
    @GET("dish_list.php?stage_id=1&limit=20&page=1")
    Observable<DxModel> getdata();

    @GET("/constellation/getAll")//get请求，括号中为具体地址
    Observable<String> getAll(@QueryMap Map<String,String> map);//定义方法名为getAll，接收一个请求参数的map

}
